package com.mzj.eagle.jobs.heartbeat.entity;

import com.mzj.eagle.jobs.annotation.Index;
import com.mzj.eagle.jobs.annotation.Mapping;
import com.mzj.eagle.jobs.common.GetId;

@Index(value="scale_hb_emq%{yyyyMMdd}",aliase="scale_hb_emq",time=true)
public class HeartbeatEmqEs {
	@Mapping(id=true,value="id")
	private String id=GetId.getId();
	@Mapping("version")
	private String version;// 版本号
	@Mapping("scale_id")
	private String scaleId;// 设备id
	@Mapping("scale_close")
	private Integer scaleClose = 0;// 关闭状态 0否 1是
	@Mapping("app_status")
	private Integer appStatus;// APP状态
	@Mapping(value="req_time")
	private String reqTime;// 请求时间
	@Mapping("status")
	private Integer status;// 设备状态 0故障 1正常,
	@Mapping("sign")
	private Integer sign;// 标志
	@Mapping(value="receiver_time",mpTime=true,mpFormat="yyyyMMddHHmmss")
	private String receiverTime;// 接收时间
	@Mapping("heartbeat_time")
	private String heartbeatTime;// 心跳所属时间段 "yyyy-MM-dd HH:m0:00"
	@Mapping("latitude")
	private Double latitude;// 纬度
	@Mapping("longitude")
	private Double longitude;// 经度

	@Mapping("shop_id")
	private Long shopId; // 商家id
	@Mapping("name")
	private String name;// 设备名称
	@Mapping("telephone")
	private String telephone;// 设备SIM卡号
	@Mapping("place_time")
	private String placeTime;// 体重称投放时间
	@Mapping("devops_id")
	private Long devopsId;// 运维人员IDj
	@Mapping("bd_id")
	private Long bdId;// BD人员ID
	@Mapping("geohash")
	private String geohash;// 经纬度hash值
	@Mapping("profile")
	private Integer profile;// 所属环境
	@Mapping("org_id")
	private Long orgId;// 所属环境
	@Mapping("apk_master_version")
	private Integer apkMasterVersion;// APK主版本
	@Mapping("apk_version")
	private String apkVersion;// 当前APK版本
	@Mapping("creator_id")
	private Long creatorId;// 创建人
	@Mapping("create_time")
	private String createTime;// 创建时间
	@Mapping("last_update_time")
	private String lastUpdateTime;// 最后更新时间

	@Mapping("cpu_rate")
	private Double cpuRate;
	@Mapping("cpu_temperature")
	private Double cpuTemperature;
	@Mapping("ram_rate")
	private Double ramRate;
	@Mapping("disk_total")
	private Double diskTotal;
	@Mapping("disk_surplus")
	private Double diskSurplus;
	@Mapping("serial2")
	private String serial2;
	@Mapping("net_type")
	private String netType;
	@Mapping("net_modal")
	private String netModal;
	@Mapping("net_sign")
	private Integer netSign;
	@Mapping("use_type")
	private Integer useType;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getScaleId() {
		return scaleId;
	}

	public void setScaleId(String scaleId) {
		this.scaleId = scaleId;
	}

	public Integer getScaleClose() {
		return scaleClose;
	}

	public void setScaleClose(Integer scaleClose) {
		this.scaleClose = scaleClose;
	}

	public Integer getAppStatus() {
		return appStatus;
	}

	public void setAppStatus(Integer appStatus) {
		this.appStatus = appStatus;
	}

	public String getReqTime() {
		return reqTime;
	}

	public void setReqTime(String reqTime) {
		this.reqTime = reqTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSign() {
		return sign;
	}

	public void setSign(Integer sign) {
		this.sign = sign;
	}

	public String getReceiverTime() {
		return receiverTime;
	}

	public void setReceiverTime(String receiverTime) {
		this.receiverTime = receiverTime;
	}

	public String getHeartbeatTime() {
		return heartbeatTime;
	}

	public void setHeartbeatTime(String heartbeatTime) {
		this.heartbeatTime = heartbeatTime;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getPlaceTime() {
		return placeTime;
	}

	public void setPlaceTime(String placeTime) {
		this.placeTime = placeTime;
	}

	public Long getDevopsId() {
		return devopsId;
	}

	public void setDevopsId(Long devopsId) {
		this.devopsId = devopsId;
	}

	public Long getBdId() {
		return bdId;
	}

	public void setBdId(Long bdId) {
		this.bdId = bdId;
	}

	public String getGeohash() {
		return geohash;
	}

	public void setGeohash(String geohash) {
		this.geohash = geohash;
	}

	public Integer getProfile() {
		return profile;
	}

	public void setProfile(Integer profile) {
		this.profile = profile;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public Integer getApkMasterVersion() {
		return apkMasterVersion;
	}

	public void setApkMasterVersion(Integer apkMasterVersion) {
		this.apkMasterVersion = apkMasterVersion;
	}

	public String getApkVersion() {
		return apkVersion;
	}

	public void setApkVersion(String apkVersion) {
		this.apkVersion = apkVersion;
	}

	public Long getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Double getCpuRate() {
		return cpuRate;
	}

	public void setCpuRate(Double cpuRate) {
		this.cpuRate = cpuRate;
	}

	public Double getCpuTemperature() {
		return cpuTemperature;
	}

	public void setCpuTemperature(Double cpuTemperature) {
		this.cpuTemperature = cpuTemperature;
	}

	public Double getRamRate() {
		return ramRate;
	}

	public void setRamRate(Double ramRate) {
		this.ramRate = ramRate;
	}

	public Double getDiskTotal() {
		return diskTotal;
	}

	public void setDiskTotal(Double diskTotal) {
		this.diskTotal = diskTotal;
	}

	public Double getDiskSurplus() {
		return diskSurplus;
	}

	public void setDiskSurplus(Double diskSurplus) {
		this.diskSurplus = diskSurplus;
	}

	public String getSerial2() {
		return serial2;
	}

	public void setSerial2(String serial2) {
		this.serial2 = serial2;
	}

	public String getNetType() {
		return netType;
	}

	public void setNetType(String netType) {
		this.netType = netType;
	}

	public String getNetModal() {
		return netModal;
	}

	public void setNetModal(String netModal) {
		this.netModal = netModal;
	}

	public Integer getNetSign() {
		return netSign;
	}

	public void setNetSign(Integer netSign) {
		this.netSign = netSign;
	}

	public Integer getUseType() {
		return useType;
	}

	public void setUseType(Integer useType) {
		this.useType = useType;
	}

	@Override
	public String toString() {
		return "HeartbeatEs [id=" + id + ", version=" + version + ", scaleId=" + scaleId + ", scaleClose=" + scaleClose
				+ ", appStatus=" + appStatus + ", reqTime=" + reqTime + ", status=" + status + ", sign=" + sign
				+ ", receiverTime=" + receiverTime + ", heartbeatTime=" + heartbeatTime + ", latitude=" + latitude
				+ ", longitude=" + longitude + ", shopId=" + shopId + ", name=" + name + ", telephone=" + telephone
				+ ", placeTime=" + placeTime + ", devopsId=" + devopsId + ", bdId=" + bdId + ", geohash=" + geohash
				+ ", profile=" + profile + ", orgId=" + orgId + ", apkMasterVersion=" + apkMasterVersion
				+ ", apkVersion=" + apkVersion + ", creatorId=" + creatorId + ", createTime=" + createTime
				+ ", lastUpdateTime=" + lastUpdateTime + ", cpuRate=" + cpuRate + ", cpuTemperature=" + cpuTemperature
				+ ", ramRate=" + ramRate + ", diskTotal=" + diskTotal + ", diskSurplus=" + diskSurplus + ", serial2="
				+ serial2 + ", netType=" + netType + ", netModal=" + netModal + ", netSign=" + netSign + ", useType="
				+ useType + "]";
	}

	
}
